package com.example.zhanghehe.myapplication.webview

import android.os.Bundle
import android.support.design.widget.AppBarLayout
import android.support.v7.app.AppCompatActivity
import com.example.basemodule.getHeight
import com.example.basemodule.getStatusHeight
import com.example.basemodule.getWidth
import com.example.webviewmodule.FooRenderer
import com.example.webviewmodule.view.GLWebView
import com.example.zhanghehe.myapplication.R

class OpenGLWebViewActivity:AppCompatActivity(){

    private lateinit var mWebView: GLWebView

    private lateinit var mAppBarLayout: AppBarLayout

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_gl_webview)

        mWebView=findViewById(R.id.glWebView)
        mAppBarLayout=findViewById(R.id.appLayout)

        val width=getWidth()
        val height=getHeight()-getStatusHeight()-mAppBarLayout.height


        val baseGLRenderer=FooRenderer(this@OpenGLWebViewActivity,width,height)









    }

    companion object {
        private val TAG=OpenGLWebViewActivity::class.simpleName
    }
}